package com.bbex.service;

import com.bbex.entity.SourceAddress;

import java.util.List;

/**
 * Created by apa7 on 2019\4\25 0025.
 */
public interface SourceAddressService {

    SourceAddress findById(String id);

    long countByAddress(String address);

    SourceAddress getLastest(String userId, String coinType);

    boolean save(SourceAddress sourceAddress);

    boolean updateById(SourceAddress sourceAddress);

    SourceAddress findByUserIdAndCoinSymbol(String userId, String coinSymbol);

    List<SourceAddress> listByUserIdAndCoinType(String userId, String coinType);

    Boolean isSourceAddress(String coinType, String address);

    void addSourceAddress(String coinType, String address);

    Boolean isTempAddress(String coinType, String address);

    void addTempAddress(String coinType, String address);

    boolean deleteById(SourceAddress sourceAddress);
}